package com.zhilianbao.leyaogo.ui.activity.me.userinfo;

import android.content.Intent;
import android.os.Bundle;

import com.bql.fragmentation.anim.DefaultHorizontalAnimator;
import com.bql.fragmentation.anim.FragmentAnimator;
import com.zhilianbao.leyaogo.R;
import com.zhilianbao.leyaogo.constants.IntentConfig;
import com.zhilianbao.leyaogo.model.response.me.UserDetailsInfo;
import com.zhilianbao.leyaogo.ui.activity.base.BaseOkHttpActivity;
import com.zhilianbao.leyaogo.ui.fragment.me.userinfo.UserInfoFragment;

import java.io.Serializable;

/**
 * Created by liu on 2016/10/24.
 *
 */
public class UserInfoActivity extends BaseOkHttpActivity {
    @Override
    protected int getContentViewLayoutID() {
        return R.layout.fragment_container;
    }

    @Override
    protected void initViewsAndEvents(Bundle savedInstanceState) {
//        Intent intent = getIntent();
//        UserDetailsInfo userDetailsInfo = (UserDetailsInfo) intent.getSerializableExtra(IntentConfig.USER_DETAIL_INFO);
        if (savedInstanceState == null) {
            loadRootFragment(R.id.fl_container,UserInfoFragment.getInstance() /*UserInfoFragment.getInstance(userDetailsInfo)*/);
        }
    }

    @Override
    protected FragmentAnimator onCreateFragmentAnimator() {
        return new DefaultHorizontalAnimator();
    }
}